package cn.jinjie.day07;

import java.util.*;

public class Test03 {
    public static void main(String[] args) {
        List<String> l1 = new ArrayList<>();
        Collections.addAll(l1, "c李四", "a王五", "d赵六", "b张三");
        System.out.println(l1);

        //对集合打乱顺序
        Collections.shuffle(l1);
        System.out.println(l1);

        //集合排序
        Collections.sort(l1);
        System.out.println(l1);

        Collections.sort(l1,(o1, o2) -> -o1.compareTo(o2));
        System.out.println(l1);
        Set set=new HashSet(10);


    }
}
